package cn.persoo.html_parse.util;

import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;

import org.apache.commons.io.FileUtils;

public class FileUtil {

	public static void fileWrite() throws URISyntaxException, IOException {
		File file = new File("/Users/weichangjie/Documents/workspace/solrcloud/weichangjie/11.txt");
		if (!file.exists()) {
			file.createNewFile();
		}

		for (int i = 0; i < 10; i++) {
			FileUtils.writeStringToFile(file, "xxxx" + i + "\r\n", "UTF-8", true);
		}
	}

}
